package com.itany.nmms.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * Author:shixiaojun@itany.com
 * Date:2022/5/27 13:46
 * Version:1.0-SNAPSHOT
 * Description:
 */
@Configuration
public class MyConfig implements WebMvcConfigurer {

    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/showLogin").setViewName("backend/login");
        registry.addViewController("/showMain").setViewName("backend/main");
    }
}
